#include "escapable_qlist_widget.h"

EscapableQListWidget::EscapableQListWidget(QWidget *parent)
    : QListWidget(parent) {}

void EscapableQListWidget::keyPressEvent(QKeyEvent *event)
{
    QListWidget::keyPressEvent(event);
    if (event->key() == Qt::Key_Escape)
    {
        this->clearSelection();
    }
}
